package tan.dft.quanly;

import android.os.Parcel;
import android.os.Parcelable;

public class Qlbiquanly implements Parcelable {

	private int idmay, idbql1, age;
	private String name, gender, add;
	private Double lat, lng;

	public Qlbiquanly(int idmay, int idbql1, int age, String name, String add,
			String gender, Double lat, Double lng) {
		super();
		this.idmay = idmay;
		this.idbql1 = idbql1;
		this.age = age;
		this.name = name;
		this.add = add;
		this.gender = gender;
		this.lat = lat;
		this.lng = lng;
	}

	public Qlbiquanly(Parcel in) {

		idmay = in.readInt();
		idbql1 = in.readInt();
		age = in.readInt();
		name = in.readString();
		add = in.readString();
		gender = in.readString();
		lat = in.readDouble();
		lng = in.readDouble();
	}

	public int getIdmay() {
		return idmay;
	}

	public void setIdmay(int idmay) {
		this.idmay = idmay;
	}

	public int getIdbql1() {
		return idbql1;
	}

	public void setIdbql1(int idbql1) {
		this.idbql1 = idbql1;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getAdd() {
		return add;
	}

	public void setAdd(String add) {
		this.add = add;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public static Parcelable.Creator<Qlbiquanly> getCreator() {
		return CREATOR;
	}

	public static final Parcelable.Creator<Qlbiquanly> CREATOR = new Parcelable.Creator<Qlbiquanly>() {
		public Qlbiquanly createFromParcel(Parcel in) {
			return new Qlbiquanly(in);
		}

		public Qlbiquanly[] newArray(int size) {
			return new Qlbiquanly[size];
		}
	};

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {

		dest.writeInt(idmay);
		dest.writeInt(idbql1);
		dest.writeInt(age);
		dest.writeString(name);
		dest.writeString(add);
		dest.writeString(gender);
		dest.writeDouble(lat);
		dest.writeDouble(lng);

	}

}
